import { defineStore } from 'pinia'

export const storeInfo = defineStore('data', {
  state: () => ({
    sharedData: null,
    newNodeInfo: null,
    nowContent: null,
    studentClassId: ''
  }),
  actions: {
    // 班级信息
    setSharedData(data: any) {
      this.sharedData = data
    },
    setNewNodeInfo(data: any) {
      this.newNodeInfo = data;
    },
    setNowContent(data:any){
      this.nowContent = data;
    },
    setStudentClassId(classId: string) {
      this.studentClassId = classId
    }
  }
})